﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace PromoOffersCrawler.Crawler.ExtensionMethods
{
    public static class StringExtensions
    {
        public static string RemoveHtml(this string thisRef)
        {
            return Regex.Replace(thisRef, @"<(.|\n)*?>", string.Empty);
        }

        public static string RemoveDigits(this string thisRef)
        {
            return Regex.Replace(thisRef, @"[\d-]", string.Empty);
        }
    }
}
